package com.orientsec.autotest.project.system.autoKeywordType.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.orientsec.autotest.project.system.autoKeywordType.mapper.AutoKeywordTypeMapper;
import com.orientsec.autotest.project.system.autoKeywordType.domain.AutoKeywordType;
import com.orientsec.autotest.project.system.autoKeywordType.service.IAutoKeywordTypeService;
import com.orientsec.autotest.common.utils.text.Convert;

/**
 * 关键字种类 服务层实现
 * 
 * @author autotest
 * @date 2020-01-09
 */
@Service
public class AutoKeywordTypeServiceImpl implements IAutoKeywordTypeService 
{
	@Autowired
	private AutoKeywordTypeMapper autoKeywordTypeMapper;

	/**
     * 查询关键字种类信息
     * 
     * @param keywordId 关键字种类ID
     * @return 关键字种类信息
     */
    @Override
	public AutoKeywordType selectAutoKeywordTypeById(Integer keywordId)
	{
	    return autoKeywordTypeMapper.selectAutoKeywordTypeById(keywordId);
	}
	
	/**
     * 查询关键字种类列表
     * 
     * @param autoKeywordType 关键字种类信息
     * @return 关键字种类集合
     */
	@Override
	public List<AutoKeywordType> selectAutoKeywordTypeList(AutoKeywordType autoKeywordType)
	{
	    return autoKeywordTypeMapper.selectAutoKeywordTypeList(autoKeywordType);
	}
	
    /**
     * 新增关键字种类
     * 
     * @param autoKeywordType 关键字种类信息
     * @return 结果
     */
	@Override
	public int insertAutoKeywordType(AutoKeywordType autoKeywordType)
	{
	    return autoKeywordTypeMapper.insertAutoKeywordType(autoKeywordType);
	}
	
	/**
     * 修改关键字种类
     * 
     * @param autoKeywordType 关键字种类信息
     * @return 结果
     */
	@Override
	public int updateAutoKeywordType(AutoKeywordType autoKeywordType)
	{
	    return autoKeywordTypeMapper.updateAutoKeywordType(autoKeywordType);
	}

	/**
     * 删除关键字种类对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteAutoKeywordTypeByIds(String ids)
	{
		return autoKeywordTypeMapper.deleteAutoKeywordTypeByIds(Convert.toStrArray(ids));
	}
	
}
